package com.lczc.soa.service;

import com.lczc.soa.domain.News;
import com.lczc.soa.domain.SearchNewsResponse;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public interface NewsService {

      News findNewsByTopic(String newsTopic);
      News findNewsByPrimaryKey(String id);

      SearchNewsResponse findAllNews(Integer pageNum, Integer pageSize);

      SearchNewsResponse findNewsLikeTopic(String keywords, Integer pageNum, Integer pageSize);

      int saveNews(News news);
      int deleteNews(String id);


      News findNewsById(String id);
      List<News> listNews();
}
